<?php


namespace app\model\user;


use app\model\partner\UserPartnerModel;
use think\Model;

class PartnerWithdrawRecordModel extends Model
{
    protected $name = 'partner_withdraw_record';
    protected $autoWriteTimestamp = true;

    public function user()
    {
        return $this->hasOne(UserPartnerModel::class, 'id', 'user_id')->withTrashed()->bind(['username', 'mobile']);
    }
}